package StrategyPattern;

public class TestDuck extends  Duck {
    public  TestDuck() {
        quekcInterface = new QueckOne();
        String quakc = quekcInterface.quakc();
        System.out.println(quakc);
        flyInterface = new FlyOne();
        String fly = this.flyInterface.fly();
        System.out.println(fly);
    }






    @Override
    public void display() {

    }

    public static void main(String[] args) {
        Duck duck = new TestDuck();
        String s = duck.performFly();
        System.out.println(s);
    }

}
